﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Workflow.ComponentModel;

namespace WindowsWorkflow.SequentialActivities
{
	public class Arc:DependencyObject 
	{
		internal string name;

		public Arc():base()
		{
			name = Guid.NewGuid().ToString();
		}

		public Arc(string from, string to):this()
		{
			this.FromActivity = from;
			this.ToActivity = to;
		}

		public static DependencyProperty FromActivityProperty = 
			DependencyProperty.Register("FromActivity", typeof(string), typeof(Arc),
			new PropertyMetadata(DependencyPropertyOptions.Metadata));

		public string FromActivity
		{
			get
			{
				return ((string)(base.GetValue(Arc.FromActivityProperty)));
			}
			set
			{
				base.SetValue(Arc.FromActivityProperty, value);
			}
		}

		public static DependencyProperty ToActivityProperty = 
			DependencyProperty.Register("ToActivity", typeof(string), typeof(Arc),
			new PropertyMetadata(DependencyPropertyOptions.Metadata));

		public string ToActivity
		{
			get
			{
				return ((string)(base.GetValue(Arc.ToActivityProperty)));
			}
			set
			{
				base.SetValue(Arc.ToActivityProperty, value);
			}
		}
	}
}
